package com.yanqu.road.server.manager.activity.suitang.task.impl;

import com.yanqu.road.entity.activity.suitang.enums.eSuiTangStage;
import com.yanqu.road.entity.activity.suitang.enums.eSuiTangTaskType;
import com.yanqu.road.server.manager.activity.suitang.activity.CrossSuiTangActivity;
import com.yanqu.road.utils.executor.GeneralTask;

public class CrossSuiTangSyncBattleResultTask extends GeneralTask {

    private CrossSuiTangActivity activity;

    public CrossSuiTangSyncBattleResultTask(CrossSuiTangActivity activity) {
        this.activity = activity;
    }

    @Override
    public void doRun() {
        if (activity.getCrossSuiTangData().getStep().getValue() >= eSuiTangStage.Stage1EndTime.getValue()) {
            this.cancel(false);
            return;
        }
        activity.getSyncActivityMgr().syncBattleResultMsg(null);
    }
}
